home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1991-06-22 | 2.8 KB | [ TEXT/MPS ]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
66%
dexvert
Compact Compressed (Unix) (archive/compact)
ext
Supported
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, Sat Jun 22 02:00:00 1991, modified Sat Jun 22 02:00:00 1991, creator 'MPS ', type ASCII, 2271 bytes "SampleX.c" , at 0x95f 382 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ MPS ]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 09 53 61 6d 70 6c 65 | 58 2e 63 00 00 00 00 00 |..Sample|X.c.....| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......| |00000050| 00 00 00 00 00 08 df 00 | 00 01 7e a4 88 97 e0 a4 |........|..~.....| |00000060| 88 97 e0 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f8 54 00 00 |........|.....T..| |00000080| 2f 2a 0d 09 24 57 6f 72 | 6b 66 69 6c 65 3a 20 20 |/*..$Wor|kfile: | |00000090| 20 53 61 6d 70 6c 65 58 | 2e 63 20 20 24 0d 09 24 | SampleX|.c $..$| |000000a0| 52 65 76 69 73 69 6f 6e | 3a 20 20 20 31 2e 30 20 |Revision|: 1.0 | |000000b0| 20 24 0d 09 09 09 09 09 | 09 09 0d 09 51 75 69 63 | $......|....Quic| |000000c0| 4b 65 79 73 20 73 61 6d | 70 6c 65 20 65 78 74 65 |Keys sam|ple exte| |000000d0| 6e 73 69 6f 6e 20 65 78 | 65 63 75 74 65 20 72 6f |nsion ex|ecute ro| |000000e0| 75 74 69 6e 65 0d 0d 09 | a9 20 31 39 39 30 20 43 |utine...|. 1990 C| |000000f0| 45 20 53 6f 66 74 77 61 | 72 65 2c 20 49 6e 63 2e |E Softwa|re, Inc.| |00000100| 20 20 41 6c 6c 20 72 69 | 67 68 74 73 20 72 65 73 | All ri|ghts res| |00000110| 65 72 76 65 64 2e 0d 09 | 09 09 0d 09 46 6f 72 20 |erved...|....For | |00000120| 51 75 69 63 4b 65 79 73 | 20 32 20 45 78 74 65 6e |QuicKeys| 2 Exten| |00000130| 73 69 6f 6e 20 53 61 6d | 70 6c 65 20 73 6f 75 72 |sion Sam|ple sour| |00000140| 63 65 20 63 6f 64 65 20 | 79 6f 75 20 68 61 76 65 |ce code |you have| |00000150| 20 61 20 72 6f 79 61 6c | 74 79 2d 66 72 65 65 20 | a royal|ty-free | |00000160| 72 69 67 68 74 0d 09 74 | 6f 20 69 6e 63 6c 75 64 |right..t|o includ| |00000170| 65 20 6f 62 6a 65 63 74 | 20 63 6f 64 65 20 64 65 |e object| code de| |00000180| 72 69 76 65 64 20 66 72 | 6f 6d 20 74 68 69 73 20 |rived fr|om this | |00000190| 53 61 6d 70 6c 65 20 73 | 6f 75 72 63 65 20 63 6f |Sample s|ource co| |000001a0| 64 65 20 69 6e 20 70 72 | 6f 67 72 61 6d 73 0d 09 |de in pr|ograms..| |000001b0| 74 68 61 74 20 79 6f 75 | 20 64 65 76 65 6c 6f 70 |that you| develop| |000001c0| 2e 20 20 59 6f 75 20 61 | 6c 73 6f 20 68 61 76 65 |. You a|lso have| |000001d0| 20 74 68 65 20 72 69 67 | 68 74 20 74 6f 20 75 73 | the rig|ht to us| |000001e0| 65 2c 20 64 69 73 74 72 | 69 62 75 74 65 2c 20 61 |e, distr|ibute, a| |000001f0| 6e 64 20 6c 69 63 65 6e | 73 65 0d 09 73 75 63 68 |nd licen|se..such| |00000200| 20 70 72 6f 67 72 61 6d | 73 20 74 6f 20 74 68 69 | program|s to thi| |00000210| 72 64 20 70 61 72 74 69 | 65 73 20 77 69 74 68 6f |rd parti|es witho| |00000220| 75 74 20 70 61 79 6d 65 | 6e 74 20 6f 66 20 61 6e |ut payme|nt of an| |00000230| 79 20 66 75 72 74 68 65 | 72 20 6c 69 63 65 6e 73 |y furthe|r licens| |00000240| 65 20 66 65 65 73 0d 09 | 74 6f 20 43 45 20 53 6f |e fees..|to CE So| |00000250| 66 74 77 61 72 65 2c 20 | 49 6e 63 2e 2c 20 73 6f |ftware, |Inc., so| |00000260| 20 6c 6f 6e 67 20 61 73 | 20 61 20 63 6f 70 79 72 | long as| a copyr| |00000270| 69 67 68 74 20 6e 6f 74 | 69 63 65 20 73 75 66 66 |ight not|ice suff| |00000280| 69 63 69 65 6e 74 20 74 | 6f 20 70 72 6f 74 65 63 |icient t|o protec| |00000290| 74 0d 09 79 6f 75 72 20 | 63 6f 70 79 72 69 67 68 |t..your |copyrigh| |000002a0| 74 20 66 6f 72 20 79 6f | 75 72 20 73 6f 66 74 77 |t for yo|ur softw| |000002b0| 61 72 65 20 69 6e 20 74 | 68 65 20 55 6e 69 74 65 |are in t|he Unite| |000002c0| 64 20 53 74 61 74 65 73 | 20 6f 72 20 61 6e 79 20 |d States| or any | |000002d0| 6f 74 68 65 72 20 63 6f | 75 6e 74 72 79 3b 0d 09 |other co|untry;..| |000002e0| 69 73 20 69 6e 63 6c 75 | 64 65 64 20 69 6e 20 74 |is inclu|ded in t| |000002f0| 68 65 20 67 72 61 70 68 | 69 63 20 64 69 73 70 6c |he graph|ic displ| |00000300| 61 79 20 6f 66 20 79 6f | 75 72 20 73 6f 66 74 77 |ay of yo|ur softw| |00000310| 61 72 65 20 61 6e 64 20 | 6f 6e 20 74 68 65 20 6c |are and |on the l| |00000320| 61 62 65 6c 73 0d 09 61 | 66 66 69 78 65 64 20 74 |abels..a|ffixed t| |00000330| 6f 20 74 68 65 20 6d 65 | 64 69 61 20 6f 6e 20 77 |o the me|dia on w| |00000340| 68 69 63 68 20 79 6f 75 | 72 20 73 6f 66 74 77 61 |hich you|r softwa| |00000350| 72 65 20 69 73 20 64 69 | 73 74 72 69 62 75 74 65 |re is di|stribute| |00000360| 64 2e 0d 0d 09 57 48 45 | 4e 09 57 48 4f 09 09 57 |d....WHE|N.WHO..W| |00000370| 48 41 54 0d a5 a5 a5 a5 | a5 0d 09 39 2f 35 09 09 |HAT.....|...9/5..| |00000380| 6d 6b 67 09 09 63 72 65 | 61 74 65 64 20 76 65 72 |mkg..cre|ated ver| |00000390| 73 69 6f 6e 20 66 6f 72 | 20 62 6f 74 68 20 4d 50 |sion for| both MP| |000003a0| 57 20 61 6e 64 20 54 68 | 69 6e 6b 20 43 0d a5 a5 |W and Th|ink C...| |000003b0| a5 a5 a5 0d 2a 2f 0d 0d | 23 69 66 6e 64 65 66 20 |....*/..|#ifndef | |000003c0| 54 48 49 4e 4b 5f 43 0d | 23 69 6e 63 6c 75 64 65 |THINK_C.|#include| |000003d0| 20 22 74 79 70 65 73 2e | 68 22 0d 23 69 6e 63 6c | "types.|h".#incl| |000003e0| 75 64 65 20 22 72 65 73 | 6f 75 72 63 65 73 2e 68 |ude "res|ources.h| |000003f0| 22 0d 23 69 6e 63 6c 75 | 64 65 20 22 6d 65 6d 6f |".#inclu|de "memo| |00000400| 72 79 2e 68 22 0d 23 69 | 6e 63 6c 75 64 65 20 22 |ry.h".#i|nclude "| |00000410| 6f 73 75 74 69 6c 73 2e | 68 22 0d 23 69 6e 63 6c |osutils.|h".#incl| |00000420| 75 64 65 20 22 73 6f 75 | 6e 64 2e 68 22 0d 23 65 |ude "sou|nd.h".#e| |00000430| 6e 64 69 66 0d 0d 23 69 | 6e 63 6c 75 64 65 20 22 |ndif..#i|nclude "| |00000440| 65 78 74 65 6e 73 69 6f | 6e 73 2e 68 22 0d 0d 23 |extensio|ns.h"..#| |00000450| 69 6e 63 6c 75 64 65 20 | 22 53 61 6d 70 6c 65 44 |include |"SampleD| |00000460| 61 74 61 2e 68 22 0d 0d | 23 69 66 64 65 66 20 54 |ata.h"..|#ifdef T| |00000470| 48 49 4e 4b 5f 43 0d 23 | 69 6e 63 6c 75 64 65 20 |HINK_C.#|include | |00000480| 3c 53 65 74 55 70 41 34 | 2e 68 3e 0d 23 65 6c 73 |<SetUpA4|.h>.#els| |00000490| 65 0d 23 69 6e 63 6c 75 | 64 65 20 3c 6f 73 75 74 |e.#inclu|de <osut| |000004a0| 69 6c 73 2e 68 3e 0d 23 | 65 6e 64 69 66 0d 0d 70 |ils.h>.#|endif..p| |000004b0| 61 73 63 61 6c 20 76 6f | 69 64 0d 64 6f 45 78 65 |ascal vo|id.doExe| |000004c0| 63 75 74 65 28 73 68 6f | 72 74 20 77 53 65 6c 65 |cute(sho|rt wSele| |000004d0| 63 74 6f 72 2c 20 53 61 | 6d 70 6c 65 44 61 74 61 |ctor, Sa|mpleData| |000004e0| 2a 20 70 4d 79 44 61 74 | 61 2c 20 45 78 65 63 75 |* pMyDat|a, Execu| |000004f0| 74 65 51 75 65 75 65 2a | 20 70 4d 79 51 75 65 75 |teQueue*| pMyQueu| |00000500| 65 2c 0d 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |e,......|........| |00000510| 09 09 09 73 68 6f 72 74 | 20 77 50 65 72 69 6f 64 |...short| wPeriod| |00000520| 69 63 54 79 70 65 29 20 | 7b 0d 09 48 61 6e 64 6c |icType) |{..Handl| |00000530| 65 09 09 09 68 53 69 63 | 6e 3b 0d 09 75 6e 73 69 |e...hSic|n;..unsi| |00000540| 67 6e 65 64 20 6c 6f 6e | 67 09 75 6c 4e 6f 77 3b |gned lon|g.ulNow;| |00000550| 0d 09 0d 23 69 66 64 65 | 66 20 54 48 49 4e 4b 5f |...#ifde|f THINK_| |00000560| 43 0d 09 52 65 6d 65 6d | 62 65 72 41 30 28 29 3b |C..Remem|berA0();| |00000570| 0d 09 0d 09 53 65 74 55 | 70 41 34 28 29 3b 0d 23 |....SetU|pA4();.#| |00000580| 65 6e 64 69 66 0d 0d 09 | 73 77 69 74 63 68 20 28 |endif...|switch (| |00000590| 77 53 65 6c 65 63 74 6f | 72 29 20 7b 0d 09 09 63 |wSelecto|r) {...c| |000005a0| 61 73 65 20 69 6e 69 74 | 58 3a 0d 09 09 09 2f 2a |ase init|X:..../*| |000005b0| 20 66 65 74 63 68 20 6f | 75 72 20 53 49 43 4e 20 | fetch o|ur SICN | |000005c0| 61 6e 64 20 70 6c 61 63 | 65 20 69 74 20 69 6e 20 |and plac|e it in | |000005d0| 6f 75 72 20 45 78 65 63 | 75 74 65 51 75 65 75 65 |our Exec|uteQueue| |000005e0| 20 72 65 63 6f 72 64 20 | 2a 2f 0d 09 09 09 68 53 | record |*/....hS| |000005f0| 69 63 6e 20 3d 20 47 65 | 74 52 65 73 6f 75 72 63 |icn = Ge|tResourc| |00000600| 65 28 27 53 49 43 4e 27 | 2c 20 2d 31 34 33 34 38 |e('SICN'|, -14348| |00000610| 29 3b 0d 09 09 09 69 66 | 20 28 68 53 69 63 6e 20 |);....if| (hSicn | |00000620| 21 3d 20 30 29 0d 09 09 | 09 09 42 6c 6f 63 6b 4d |!= 0)...|..BlockM| |00000630| 6f 76 65 28 2a 68 53 69 | 63 6e 2c 20 70 4d 79 51 |ove(*hSi|cn, pMyQ| |00000640| 75 65 75 65 2d 3e 73 69 | 63 6e 2c 20 33 32 29 3b |ueue->si|cn, 32);| |00000650| 0d 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 0d 09 09 |....brea|k;......| |00000660| 63 61 73 65 20 72 65 67 | 75 6c 61 72 58 3a 0d 09 |case reg|ularX:..| |00000670| 09 09 2f 2a 20 74 69 6d | 65 20 74 6f 20 64 6f 20 |../* tim|e to do | |00000680| 74 68 65 20 61 63 74 69 | 6f 6e 20 63 61 6c 6c 65 |the acti|on calle| |00000690| 64 20 66 6f 72 20 69 6e | 20 6f 75 72 20 6b 65 79 |d for in| our key| |000006a0| 20 2a 2f 0d 09 09 09 69 | 66 20 28 70 4d 79 44 61 | */....i|f (pMyDa| |000006b0| 74 61 2d 3e 6c 57 61 69 | 74 54 69 6d 65 20 3c 3d |ta->lWai|tTime <=| |000006c0| 20 30 29 20 7b 0d 09 09 | 09 09 53 79 73 42 65 65 | 0) {...|..SysBee| |000006d0| 70 28 31 29 3b 0d 09 09 | 09 09 7d 0d 09 09 09 65 |p(1);...|..}....e| |000006e0| 6c 73 65 20 7b 0d 09 09 | 09 09 2f 2a 0d 09 09 09 |lse {...|../*....| |000006f0| 09 20 2a 20 6e 65 65 64 | 20 74 6f 20 77 61 69 74 |. * need| to wait| |00000700| 20 61 20 77 68 69 6c 65 | 20 62 65 66 6f 72 65 20 | a while| before | |00000710| 70 6c 61 79 69 6e 67 2e | 0d 09 09 09 09 20 2a 20 |playing.|..... * | |00000720| 53 61 76 65 20 74 68 65 | 20 74 69 6d 65 20 77 65 |Save the| time we| |00000730| 27 72 65 20 67 6f 69 6e | 67 20 74 6f 20 62 65 65 |'re goin|g to bee| |00000740| 70 20 69 6e 20 74 68 65 | 20 72 65 66 63 6f 6e 2c |p in the| refcon,| |00000750| 20 65 6e 61 62 6c 65 0d | 09 09 09 09 20 2a 20 70 | enable.|.... * p| |00000760| 65 72 69 6f 64 69 63 20 | 63 61 6c 6c 73 2c 20 61 |eriodic |calls, a| |00000770| 6e 64 20 65 78 69 74 2e | 20 20 50 65 72 69 6f 64 |nd exit.| Period| |00000780| 69 63 20 63 61 6c 6c 73 | 20 77 69 6c 6c 20 64 6f |ic calls| will do| |00000790| 20 74 68 65 20 72 65 73 | 74 2e 0d 09 09 09 09 20 | the res|t...... | |000007a0| 2a 2f 0d 09 09 09 09 47 | 65 74 44 61 74 65 54 69 |*/.....G|etDateTi| |000007b0| 6d 65 28 26 75 6c 4e 6f | 77 29 3b 0d 09 09 09 09 |me(&ulNo|w);.....| |000007c0| 70 4d 79 51 75 65 75 65 | 2d 3e 6c 52 65 66 43 6f |pMyQueue|->lRefCo| |000007d0| 6e 20 3d 20 75 6c 4e 6f | 77 20 2b 20 28 75 6e 73 |n = ulNo|w + (uns| |000007e0| 69 67 6e 65 64 20 6c 6f | 6e 67 29 70 4d 79 44 61 |igned lo|ng)pMyDa| |000007f0| 74 61 2d 3e 6c 57 61 69 | 74 54 69 6d 65 3b 0d 09 |ta->lWai|tTime;..| |00000800| 09 09 09 70 4d 79 51 75 | 65 75 65 2d 3e 66 6c 61 |...pMyQu|eue->fla| |00000810| 67 73 20 7c 3d 20 50 65 | 72 69 6f 64 69 63 46 6c |gs |= Pe|riodicFl| |00000820| 61 67 3b 0d 09 09 09 09 | 7d 0d 09 09 09 62 72 65 |ag;.....|}....bre| |00000830| 61 6b 3b 0d 0d 09 09 63 | 61 73 65 20 70 65 72 69 |ak;....c|ase peri| |00000840| 6f 64 69 63 58 3a 0d 09 | 09 09 2f 2a 20 63 68 65 |odicX:..|../* che| |00000850| 63 6b 20 66 6f 72 20 74 | 68 65 20 72 69 67 68 74 |ck for t|he right| |00000860| 20 74 69 6d 65 20 74 6f | 20 62 65 65 70 20 2a 2f | time to| beep */| |00000870| 0d 09 09 09 47 65 74 44 | 61 74 65 54 69 6d 65 28 |....GetD|ateTime(| |00000880| 26 75 6c 4e 6f 77 29 3b | 0d 09 09 09 69 66 20 28 |&ulNow);|....if (| |00000890| 75 6c 4e 6f 77 20 3e 3d | 20 28 75 6e 73 69 67 6e |ulNow >=| (unsign| |000008a0| 65 64 20 6c 6f 6e 67 29 | 70 4d 79 51 75 65 75 65 |ed long)|pMyQueue| |000008b0| 2d 3e 6c 52 65 66 43 6f | 6e 29 20 7b 0d 09 09 09 |->lRefCo|n) {....| |000008c0| 09 70 4d 79 51 75 65 75 | 65 2d 3e 66 6c 61 67 73 |.pMyQueu|e->flags| |000008d0| 20 26 3d 20 7e 50 65 72 | 69 6f 64 69 63 46 6c 61 | &= ~Per|iodicFla| |000008e0| 67 3b 0d 09 09 09 09 53 | 79 73 42 65 65 70 28 31 |g;.....S|ysBeep(1| |000008f0| 29 3b 0d 09 09 09 09 7d | 0d 09 09 09 62 72 65 61 |);.....}|....brea| |00000900| 6b 3b 0d 09 09 0d 09 09 | 63 61 73 65 20 61 62 6f |k;......|case abo| |00000910| 72 74 58 3a 0d 09 09 09 | 2f 2a 20 6e 6f 74 20 75 |rtX:....|/* not u| |00000920| 73 65 64 20 2a 2f 0d 09 | 09 09 62 72 65 61 6b 3b |sed */..|..break;| |00000930| 0d 09 09 7d 0d 09 0d 23 | 69 66 64 65 66 20 54 48 |...}...#|ifdef TH| |00000940| 49 4e 4b 5f 43 0d 09 09 | 52 65 73 74 6f 72 65 41 |INK_C...|RestoreA| |00000950| 34 28 29 3b 0d 23 65 6e | 64 69 66 0d 09 7d 0d 00 |4();.#en|dif..}..| |00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000980| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2| |00000990| 24 52 65 76 69 73 69 6f | 6e 24 0d 09 09 09 09 09 |$Revisio|n$......| |000009a0| 09 09 0d 09 51 75 69 63 | 4b 65 79 73 20 73 6f 75 |....Quic|Keys sou| |000009b0| 09 53 61 6d 70 6c 65 58 | 2e 63 02 00 00 00 54 45 |.SampleX|.c....TE| |000009c0| 4d 50 44 53 45 41 00 00 | 00 00 00 00 00 00 00 00 |MPDSEA..|........| |000009d0| 00 00 54 45 4d 50 44 53 | 45 41 00 00 00 00 00 00 |..TEMPDS|EA......| |000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000009f0| 00 00 a6 4a 8c 1a 00 00 | 08 df 00 00 01 7e 68 74 |...J....|.....~ht| |00000a00| 73 20 72 65 73 65 72 76 | 65 64 2e 0d 09 09 09 0d |s reserv|ed......| |00000a10| 09 57 48 45 4e 09 57 48 | 4f 09 09 57 48 41 54 0d |.WHEN.WH|O..WHAT.| |00000a20| a5 a5 a5 a5 a5 0d 09 38 | 2f 32 38 09 6d 6b 67 09 |.......8|/28.mkg.| |00000a30| 09 63 72 65 61 74 65 64 | 20 66 69 6c 65 0d a5 a5 |.created| file...| |00000a40| a5 a5 a5 0d 2a 2f 0d 0d | 23 69 6e 63 6c 75 64 65 |....*/..|#include| |00000a50| 20 22 65 78 74 65 6e 73 | 69 6f 6e 73 2e 68 22 0d | "extens|ions.h".| |00000a60| 0d 65 78 74 65 72 6e 20 | 70 61 73 63 61 6c 20 76 |.extern |pascal v| |00000a70| 6f 69 64 20 64 6f 45 78 | 65 63 75 74 65 28 29 3b |oid doEx|ecute();| |00000a80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 2e 63 00 |...H..Mo|naco..c.| |00000a90| 22 00 00 20 61 66 74 65 | 72 20 74 61 62 20 69 6e |".. afte|r tab in| |00000aa0| 20 6e 65 77 20 63 00 06 | 00 04 00 50 00 20 01 dd | new c..|...P. ..| |00000ab0| 02 3d 00 50 00 20 01 dd | 02 3d a3 12 9f 81 00 00 |.=.P. ..|.=......| |00000ac0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........| |00000ad0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 3d f1 10 |...L...L|...2.=..| |00000ae0| 09 30 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.0.....2|..MPSR..| |00000af0| 00 0a 03 ed ff ff 00 00 | 00 00 00 3f ba 80 00 00 |........|...?....| +--------+-------------------------+-------------------------+--------+--------+